package cn.mw.OpenFeign.fallbackfactory;

import cn.mw.OpenFeign.MenuFeign;
import cn.mw.domain.Menu;
import cn.mw.util.AjaxResult;
import feign.hystrix.FallbackFactory;

public class MenuFallbackFactory implements FallbackFactory<MenuFeign> {
    @Override
    public MenuFeign create(Throwable cause) {
        return new MenuFeign() {
            @Override
            public Menu getOne(Long id) {
                return null;
            }

            @Override
            public void getAdd(Menu menu) {

            }
        };
    }
}
